Conversation
- add 12h/24h clock format toggle to display settings - support 24-hour mode in TimePicker component - update activity form schema and date-time utils to parse and validate both formats - format activity tables and task timestamps according to user clock preference - add UserSettingsContext provider and hooks for clock format state - add unit tests for clock format utilities and TimePicker 24h mode
|
I'm going to close this one — not because the request in #112 is wrong, but because the timing and the shape aren't right yet. Time display settings aren't on the roadmap yet. Timezone support is coming, and that will have to define how times are stored and rendered app-wide. A clock-format preference added now would be reworked as soon as that lands, so I'd rather do both together and get one coherent model. The change has side effects for users who never opt in. A failed settings read silently resets the preference. In Save writes twice, and the second write races. Coverage is partial. The setting reaches 3 surfaces; Automations, Run History, Match Details, Notes, Reviews and Data Settings are still hardcoded 12-hour, so a 24h user keeps seeing There's also an unrelated edit in Thanks for the contribution — I'll keep #112 open and fold clock format into the timezone work. Reviewed with Claude Opus 5. |
Description
Closes #112
This PR adds an option in the Display Settings to toggle between a 12-hour (AM/PM) and 24-hour clock format. The selected setting is reflected across the entire application:
AddActivityFormSchemaandcombineDateAndTimehelper to parse and validate both 12h and 24h time strings.UserSettingsContextfor reactive dashboard-wide updates upon saving settings.Testing
__tests__/TimePicker.spec.tsxand__tests__/clockFormat.spec.ts.npm run build).